package com.ruoyi.social.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.social.mapper.SocialKolAnalysisMapper;
import com.ruoyi.social.domain.SocialKolAnalysis;
import com.ruoyi.social.service.ISocialKolAnalysisService;

/**
 * KOL分析记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-24
 */
@Service
public class SocialKolAnalysisServiceImpl implements ISocialKolAnalysisService 
{
    @Autowired
    private SocialKolAnalysisMapper socialKolAnalysisMapper;

    /**
     * 查询KOL分析记录
     * 
     * @param id KOL分析记录主键
     * @return KOL分析记录
     */
    @Override
    public SocialKolAnalysis selectSocialKolAnalysisById(Long id)
    {
        return socialKolAnalysisMapper.selectSocialKolAnalysisById(id);
    }

    /**
     * 查询KOL分析记录列表
     * 
     * @param socialKolAnalysis KOL分析记录
     * @return KOL分析记录
     */
    @Override
    public List<SocialKolAnalysis> selectSocialKolAnalysisList(SocialKolAnalysis socialKolAnalysis)
    {
        return socialKolAnalysisMapper.selectSocialKolAnalysisList(socialKolAnalysis);
    }

    /**
     * 新增KOL分析记录
     * 
     * @param socialKolAnalysis KOL分析记录
     * @return 结果
     */
    @Override
    public int insertSocialKolAnalysis(SocialKolAnalysis socialKolAnalysis)
    {
        return socialKolAnalysisMapper.insertSocialKolAnalysis(socialKolAnalysis);
    }

    /**
     * 修改KOL分析记录
     * 
     * @param socialKolAnalysis KOL分析记录
     * @return 结果
     */
    @Override
    public int updateSocialKolAnalysis(SocialKolAnalysis socialKolAnalysis)
    {
        return socialKolAnalysisMapper.updateSocialKolAnalysis(socialKolAnalysis);
    }

    /**
     * 批量删除KOL分析记录
     * 
     * @param ids 需要删除的KOL分析记录主键
     * @return 结果
     */
    @Override
    public int deleteSocialKolAnalysisByIds(Long[] ids)
    {
        return socialKolAnalysisMapper.deleteSocialKolAnalysisByIds(ids);
    }

    /**
     * 删除KOL分析记录信息
     * 
     * @param id KOL分析记录主键
     * @return 结果
     */
    @Override
    public int deleteSocialKolAnalysisById(Long id)
    {
        return socialKolAnalysisMapper.deleteSocialKolAnalysisById(id);
    }
}
